using FreeSql.DataAnnotations;
using Newtonsoft.Json;

namespace ProjectManageSystemApi.DbEntity
{

    [JsonObject(MemberSerialization.OptIn), Table(Name = "sys_core_role_extra", DisableSyncStructure = true)]
	public partial class SysCoreRoleExtra {

		/// <summary>
		/// sys_core_role表id
		/// </summary>
		[JsonProperty, Column(Name = "role_id", IsPrimary = true)]
		public long RoleId { get; set; }

		/// <summary>
		/// 是否拥有超级权限
		/// </summary>
		[JsonProperty, Column(Name = "is_admin")]
		public bool IsAdmin { get; set; } = false;

		/// <summary>
		/// 是否可以查看所有工程
		/// </summary>
		[JsonProperty, Column(Name = "show_all_project")]
		public bool ShowAllProject { get; set; } = false;

		/// <summary>
		/// 是否允许登录pc
		/// </summary>
		[JsonProperty, Column(Name = "login_pc")]
		public bool LoginPc { get; set; } = false;

		/// <summary>
		/// 是否允许登录手机
		/// </summary>
		[JsonProperty, Column(Name = "login_phone")]
		public bool LoginPhone { get; set; } = false;
	}

}
